﻿using System.ComponentModel;
using ZeroSum.Models;

namespace ZeroSum.Exceptions;

[Description("未授权时抛出")]
public class UnAuthorizeException : BusinessException
{
    private UnAuthorizeException(string message) : base(message, ResponseStatus.UnAuthorize)
    {
    }

    public static UnAuthorizeException Of(string message)
    {
        return new UnAuthorizeException(message);
    }
}